/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package modele;

import java.util.Collection;
import java.util.HashSet;

/**
 *
 * @author sio
 */
public class Dep implements Comparable<Dep> {

    private String num;
    private Collection<Med> lesMeds = new HashSet<Med>();

    public Dep(String num, Collection<Med> m) {
        this.num = num;
        lesMeds = m;
    }

    public String getNum() {
        return num;
    }

    public Collection<Med> getLesMeds() {
        return lesMeds;
    }

    public int compareTo(Dep d) {
        return num.compareTo(d.num);

    }

}
